package com.jierui.meter.frontend.base.enums;

public enum BusinessErrorEnum {

    SUCCESS("0", "请求成功"),

    /**
     * 通用 10 开头
     */
    ERROR("10000", "系统错误"),
    ID_SHOULD_BE_EMPTY("10001", "ID应该为空"),
    CODE_EXISTS("10002", "编码已存在"),
    REQUEST_FAILED("10003", "请求失败"),
    ID_NOT_EXISTS("10004", "ID不存在"),
    PARAM_NOT_VALID("10005", "参数校验不合格"),
    SAVE_FAILED("10006", "保存失败"),
    AUTH_NOT_ENOUGH("10006", "权限不足"),
    CHECK_STATUS_ERROR("10007", "审核状态错误"),
    ALREADY_COMMIT("10008", "已经提交审核"),
    DUPLICATE_REQUEST("10009", "请求重复"),
    UPLOAD_FILE_NULL("10010", "上传文件不能为空"),

    ;


    private String errorCode;
    private String errorMessage;

    BusinessErrorEnum(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
